<!-- 选中按钮 -->
<template>
  <div class="check-button" :class="{check:isChecked}"  >
    <img src="~assets/img/tick.svg" alt="">
  </div>
</template>

<script>
  export default {
    name: "CheckButton",
    props: {
      //从商品页传递来得值
      isChecked: {
        type: Boolean,
        default: false,
      },
    },
    methods: {
    }
  }
</script>

<style scoped>
  .check-button {
    width: 25px;
    border-radius: 50%;
    border: 2px solid #aaa;
    text-align: center;
    margin-right: 5px;
    margin-top: 50px;
  }
  .check{
    background: red;
  }
</style>